A5Storage::DataItem SaveToFile Method

Syntax

.SaveToFile as L (TargetPath as C)

Arguments

TargetPathCharacter

 

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

Saves the data in an object to the file specified in TargetPath.

Example

dim CallResult as CallResult
dim Container as A5Storage::DataContainer = null_value()

CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';")
if CallResult.Success
    dim Item A5Storage::DataItem = null_value()
    if Container.ReferenceItem(Item, "MyObjectName")
        if .not. Item.SaveToFile("c:\mydata.jpg)
            showvar(Item.CallResult.Text, "Error in SaveToFile")
        end if
    end if
end if